/* eslint-disable max-lines-per-function */
import React from 'react';
// eslint-disable-next-line babel/camelcase
import {useModel} from 'umi';
import {Button, Space, Card} from 'antd';

const ComB = () => {
    const {count, increment, decrement} = useModel('example');

    // PageContainer属性请查阅https://procomponents.ant.design/components/layout#pagecontainer
    return (
        <>
            <Space>
                <Button onClick={increment}>+</Button>
                <Button onClick={decrement}>-</Button>
            </Space>
            <Card>
                组件B：{count}
            </Card>
        </>
    );
};

export default ComB;
